package com.atguigu.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-01-18
 * @Description:
 * @Version: 1.0
 */
@RestController
@RequestMapping("/HelloWorldTwo")
public class HelloWorldTwo {
    @RequestMapping("/hello")
    public String hello(){
        return "Hello World Two";
    }
    @RequestMapping(
           value="/hello/*",
            method = RequestMethod.GET
    )
    public String hello2(){
        return "Hello World Two";
    }
    @RequestMapping(
            value="/hello1/?",
            method = RequestMethod.GET
    )
    public String hello3(){
        return "Hello World Two";
    }
    @RequestMapping(
            value="/hello2/**",
            method = RequestMethod.GET
    )
    public String hello4(){
        return "多层";
    }
}

